package com.lo.service;

import com.github.pagehelper.PageInfo;
import com.lo.common.JsonResult;
import com.lo.entity.Course;

public interface CourseService {
    JsonResult addCourse(Course course);

    JsonResult deleteCourse(Long id);
    //更新数据
    JsonResult updateCourse(Course course);
    //编辑回显
    JsonResult editCourse(Long id);
    //通过审核
    JsonResult updateIsExamine(Long id);
    //申请删除
    JsonResult updateIsDelete(Long id);
    //撤销删除
    JsonResult updateIsDelete2Zero(Long id);

    JsonResult courseOrdinaryCount();
    JsonResult courseVipCount();

    JsonResult courseOrdinaryCountByTid(Long tid);
    JsonResult courseVipCountByTid(Long tid);
    //普通课程
    JsonResult selectOrdinaryCourse();
    PageInfo selectOrdinaryCourseWithPage(int pageNum, int pageSize,String search);
    //vip
    JsonResult selectVipCourse();
    PageInfo selectVipCourseWithPage(int pageNum, int pageSize,String search);
    //工学
    JsonResult selectEngineeringCourse();
    PageInfo selectEngineeringCourseWithPage(int pageNum, int pageSize,String search);
    //理学
    JsonResult selectScienceCourse();
    PageInfo selectScienceCourseWithPage(int pageNum, int pageSize,String search);
    //文学
    JsonResult selectLiteratureCourse();
    PageInfo selectLiteratureCourseWithPage(int pageNum, int pageSize,String search);
    //法学
    JsonResult selectLawCourse();
    PageInfo selectLawCourseWithPage(int pageNum, int pageSize,String search);

    JsonResult selectAllCourse();
    PageInfo selectAllCourseWithPage(int pageNum, int pageSize,String search);

    JsonResult selectAllCourseToWX(String search);

}
